﻿<%@ WebHandler Language="C#" Class="CustomHandler" %>

using System;
using System.Web;
using Telerik.Web.UI;

public class CustomHandler : AsyncUploadHandler, System.Web.SessionState.IRequiresSessionState
{
    protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context,
        IAsyncUploadConfiguration configuration, string tempFileName)
    {
        CustomAsyncUploadResult result = CreateDefaultUploadResult<CustomAsyncUploadResult>(file);
        
        SaveToTempFolder(file, configuration, context, tempFileName);
        
        result.TempFileLocation = FullPath;

        return result;
    }
}